Crate bitcoin_hd
source · [−]Expand description
Library with extended support of hierarchival deterministic wallet functions.
Includes advanced derivation paths functionality and operations.
Re-exports
pub use account::TrackingAccount;
pub use schemata::DerivationScheme;
Modules
Module implements LNPBP-32 tracking account type
Derivation schemata based on BIP-43-related standards.
Structs
Derivation path that consisting only of single type of segments.
the provided derive pattern does not match descriptor derivation wildcard
Index for hardened children derivation; ensures that the index always >= 2^31.
Range of derivation indexes (in form n..m
) as it can be present in the
derivation path terminal segment according to BIP-88 and LNPBP-32. The range
is always inclusive.
Multiple index ranges (in form a..b, c..d
) as it can be present in the
derivation path segment according to BOP-88 and LNPBP-32. The range is
always inclusive.
Index for unhardened children derivation; ensures that the inner value is always < 2^31
Enums
Derivation segment for the account part of the derivation path as defined by LNPBP-32 standard
Errors during descriptor derivation
Derivation segment for the terminal part of the derivation path as defined by LNPBP-32 standard
A reference to the used extended public key at some level of a derivation path.
Constants
Constant determining BIP32 boundary for u32 values after which index is treated as hardened
Traits
Extension trait allowing to add more methods to DerivationPath
type
Methods for deriving from output descriptor.
Method-trait that can be implemented by all types able to derive a public key with a given path
Standard methods which should be supported by descriptors of different sorts.
Extension trait allowing splitting derivation paths into hardened and unhardened components
Trait defining common API for different types of indexes which may be present in a certain derivation path segment: hardened, unhardened, mixed.